package com.shop.mall.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品表
 *
 * @author admin
 * @version 1.0
 * @date 2019/4/23
 */
public class Goods implements Serializable {
    private static final long serialVersionUID = -2964648259768944299L;
    private Long id;
    /**
     * 商品名称
     */
    private String name;
    /**
     * 商品图片
     */
    private String pic;
    /**
     * 商品详情介绍
     */
    private String info;
    /**
     * 商品价格
     */
    private BigDecimal price;
    /**
     * 商品库存量
     */
    private Integer num;
    /**
     * 商品备注
     */
    private String description;
    /**
     * 商品类别
     */
    private String category;
    /**
     * 是否是参加活动的商品(特价)
     */
    private Boolean activity;
    /**
     * 创建时间
     */
    private String create_time;
    /**
     * 创建人
     */
    private String creator;
    /**
     * 修改时间
     */
    private String updateTime;
    /**
     * 修改人
     */
    private String modifier;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Boolean getActivity() {
        return activity;
    }

    public void setActivity(Boolean activity) {
        this.activity = activity;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String createTime) {
        this.create_time = create_time;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("name", name)
                .append("pic", pic)
                .append("info", info)
                .append("price", price)
                .append("num", num)
                .append("description", description)
                .append("category", category)
                .append("activity", activity)
                .append("create_time", create_time)
                .append("creator", creator)
                .append("updateTime", updateTime)
                .append("modifier", modifier)
                .toString();
    }
}
